package com.ll.demo1;

import java.util.ArrayList;
import java.util.List;

/**
 * @description:
 * @author: LiuLei
 * @create: 2024-09-06
 **/
public class JavaPCheck {


    // static 区域

    public static final int demodee = 100;
    private static int a = 20;
    private static Integer c;

    private static Integer d = 1;
    private static String s1 = "s1";

    private static List<String> list = new ArrayList<>();
    private static List<String> list1 = null;


    // final 区域
    private static final int aa = 0;
    private static final int bb;

    private static final String s2 = "s2";
    private static final String s3;

    private static final List<String>  l = new ArrayList<>();

    private static final List<String>  l1;

    static {
        bb = 0;
        s3 = "s3";
        l1 = new ArrayList<>();
    }

    // 成员变量

    private int c1;
    private int c2 = 0;
    private List<String> c3 = new ArrayList<>();
    private List<String> c4;

    private final int c11;
    private final int c12 = 1;

    private final List<String> c31 = new ArrayList<>();
    private final List<String> c32;

    public JavaPCheck() {
        c11 = 1;
        c32 = new ArrayList<>();
    }

    public JavaPCheck(int c1) {
        c11 = 2;
        this.c1 = c1;
        c32 = new ArrayList<>();
    }

    public int getC1() {
        return c1;
    }

    private int get11(){
        return 1;
    }

    protected int get22(){
        return 2;
    }

    public void setC1(int c1) {
        this.c1 = c1;
    }

    public int addInfo(int k, int s){
        return k+s;
    }


    public static void get(){
        System.out.println("a");
    }

    public static int s(int eee, int eee1){
        return eee + eee1;
    }

    public static void main(String[] args) throws InterruptedException {
        Thread.sleep(100);
        new JavaPCheck().addInfo(1,2);
        JavaPCheck.s(1,3);
    }
}